package com.zzyang.aop.demo.interceptor;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.lang.reflect.Method;

/**
 * TODO
 *
 * @author zhuoziyang
 * @date 2021/5/16 22:37
 */
@Getter
@Setter
@Accessors(chain = true)
public class Invocation {

    private Object proxy;

    private Object target;

    private Method method;

    private Object[] args;

    private Object returnValue;

    public Object proceed() throws Exception {
        return method.invoke(target, args);
    }

}
